{% from '@SyliusAdmin/shared/helper/breadcrumbs.html.twig' import breadcrumbs %}

{% set product_variant = hookable_metadata.context.resource %}
{% set product = product_variant.product %}

{{ breadcrumbs([
    { name: 'sylius.ui.dashboard'|trans, url: path('sylius_admin_dashboard'), active: false },
    { name: 'sylius.ui.products'|trans, url: path('sylius_admin_product_index'), active: false },
    { name: product.name|default(product.code), url: path('sylius_admin_product_show', {'id': product.id }), active: false },
    { name: 'sylius.ui.variants'|trans, url: path('sylius_admin_product_variant_index', {'productId': product.id }), active: false },
    { name: 'sylius.ui.new'|trans, active: true }
]) }}
